<?php

namespace application\Module;

use library\Core\Db\CDbCriteria;
use application\Model\SeoModel;

class Seo
{
    /**
     * @param $pid
     * @param array $select
     * @return array
     *
     */
    public function getInfo($url)
    {
        $criteria = new CDbCriteria();
        $criteria->select(['id','title','keyword','description']);
        $criteria->addEqCondition('url', $url);
        $criteria->addEqCondition('is_del', 0);
        $criteria->addEqCondition('status', 1);
        $model = new SeoModel();
        return $model->getRow($criteria);

    }

}
